prefix=@prefix@
dictdir=$(prefix)/lib/unicon/modules/cxterm/dict

SUBDIRS = gb big5 jis ks
all::
	for i in $(SUBDIRS) ;\
	do \
	echo "making" all "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) -C $$i all; \
	done

clean:
	$(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* make.log MakeOut core "#"*
	@for flag in ${MAKEFLAGS} ''; do \
	case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \
	for i in $(SUBDIRS) ;\
	do \
	echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) -C $$i $(MFLAGS) $(PARALLELMFLAGS)  clean; \
	done
distclean:
	$(RM) Makefile tags TAGS

install: all
	for i in $(SUBDIRS) ;\
	do \
		echo "installing" "in $$i..."; \
		mkdir -p $(dictdir)/$$i; \
	 	install -o root -g root -m644 $$i/*.cit $(dictdir)/$$i/; \
	done



